package com.ruiyi.dto;

import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
public class UserSearchDto extends BaseDto{

    @Pattern(regexp = "[\\u4e00-\\u9fa5]{2,10}",message = "姓名格式错误!")
    private String username;

    @Pattern(regexp = "[1][3456789][0-9]{9}",message = "手机号格式错误!")
    private String tel;

    @Pattern(regexp = ".{5,20}",message = "部门格式错误!")
    private String deptName;

    @Pattern(regexp = "[10]",message = "性别格式错误!")
    private String sex;

}
